package com.gscitysfy.cus.drain.modules.inspection.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gscitysfy.cus.drain.modules.inspection.entity.DrainInspectionMnProblem;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gscitysfy.cus.drain.modules.inspection.vo.DrainInspectionMnProblemVo;
import com.gscitysfy.cus.drain.modules.inspection.vo.NumVo;

import javax.servlet.http.HttpServletResponse;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Administrator
 * @since 2022-10-14 15:00:46
 */
public interface IDrainInspectionMnProblemService extends IService<DrainInspectionMnProblem> {

    boolean saveProblem(DrainInspectionMnProblem drainInspectionMnProblem);

    int deleteProblemByIds(String ids);

    DrainInspectionMnProblem viewById(String id);

    IPage<DrainInspectionMnProblem> getProblemListByCondition( DrainInspectionMnProblemVo drainInspectionMnProblemVo);

    void exportPatrolFile(HttpServletResponse response,DrainInspectionMnProblemVo drainInspectionMnProblemVo);

    Object updateProblemById(Long cmKid, Integer cmProblemApprovalStatus, String cmProblemApprovalComments);

    Long appSaveProblem(DrainInspectionMnProblem drainInspectionMnProblem);

    boolean appUpdateProblem(DrainInspectionMnProblem drainInspectionMnProblem);

    NumVo appCountProblem(String type);
}
